package com.healthcloud.service.PatientRecord.impl;

import com.healthcloud.dao.PatientRecord.MedicalProjectDao;
import com.healthcloud.entity.PatientRecord.MedicalProjectEntity;
import com.healthcloud.service.PatientRecord.MedicalProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;



@Service("medicalProjectService")
@Transactional
public class MedicalProjectServiceImpl implements MedicalProjectService {
	@Autowired
	private MedicalProjectDao medicalProjectDao;
	
	@Override
	public MedicalProjectEntity queryObject(Integer id){
		return medicalProjectDao.queryObject(id);
	}

	@Override
	public List<MedicalProjectEntity> queryList(MedicalProjectEntity bean, PageParam pageParam){
		return medicalProjectDao.queryList(bean, pageParam);
	}
	
	@Override
	public int queryTotal(MedicalProjectEntity bean){
		return medicalProjectDao.queryTotal(bean);
	}
	
	@Override
	public void save(MedicalProjectEntity medicalProject){
		medicalProjectDao.save(medicalProject);
	}
	
	@Override
	public void update(MedicalProjectEntity medicalProject){
		medicalProjectDao.update(medicalProject);
	}
	
	@Override
	public void delete(Integer id){
		medicalProjectDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		medicalProjectDao.deleteBatch(ids);
	}
	
}
